cmake_minimum_required(VERSION 3.10)
project(slam_cloud_transform)

set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

# Find required packages
find_package(PCL 1.10 REQUIRED)
find_package(Eigen3 REQUIRED)

# Include directories
include_directories(
    ${PCL_INCLUDE_DIRS}
    ${EIGEN3_INCLUDE_DIR}
    ${PROJECT_SOURCE_DIR}/include
)

link_directories(${PCL_LIBRARY_DIRS})
add_definitions(${PCL_DEFINITIONS})

# Add source files
add_executable(slam_cloud_transform
    src/main.cpp
    src/cloud_transform.cpp
)

# Link libraries
target_link_libraries(slam_cloud_transform
    pcl_common
    pcl_io
    pcl_filters
    pcl_console
    ${PCL_LIBRARIES}
)
